#!D:/CODE/python
# -*- coding: utf-8 -*-
# @Time : 2020/5/30 22:18
# @Author : Alexdong
# @Site : 
# @File : 新式property属性的三种方式2.py
# @Software: PyCharm
# Functional description:

class Foo:
    def get_bar(self):
        return "laowang"
    BAR = property(get_bar)

obj = Foo()
result = obj.BAR

print(result)